package com.csdj.service;


import com.csdj.entity.AppInfo;
import com.csdj.entity.dataDictionary;
import com.csdj.entity.dataDictionaryExample;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.csdj.mapper.dataDictionaryMapper;
import javax.annotation.Resource;
import java.util.List;

@Transactional
@Service("dataDictionaryService")
public class DataDictionaryServiceImpl implements DataDictionaryService{
    @Resource
    private dataDictionaryMapper dataDictionaryMapper;
    @Override
    public List<dataDictionary> comboBox(String type ) {
        dataDictionaryExample example = new dataDictionaryExample();
        example.createCriteria().andTypeNameEqualTo(type);
        return  dataDictionaryMapper.selectByExample(example);
    }
}
